package com.java.reflection;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Type;

public class ReflectionUtil {
    public static void println(Class[] classes) {
        for (Class aClass : classes) {
            System.out.print(aClass.getSimpleName() + " ");
        }
        System.out.println();
    }
    
    public static void println(Constructor[] constructors) {
        for (Constructor constructor : constructors) {
            System.out.print(constructor + " ");
        }
        System.out.println();
    }
    
    public static void println(Field[] fields) {
        for (Field field : fields) {
            System.out.print(field.getName() + " ");
        }
        System.out.println();
    }
    
    public static void println(Method[] methods) {
        for (Method method : methods) {
            System.out.print(method.getName() + " ");
        }
        System.out.println();
    }
    
    public static void println(Type[] types) {
        for (Type type : types) {
            System.out.print(type.getTypeName() + " ");
        }
        System.out.println();
    }
}
